package hos.controller;

import java.util.Scanner;

import hos.po.P_information;
import hos.po.P_register;
import hos.service.P_registerServiceImp;

public class P_registerController {
	public void P_regiCreate(P_information p_info) {
		P_register P1 = new P_register();
		P1.setP_id(p_info.getP_id());
		System.out.println("请输入你想挂号的医生的编号(id)");
		Scanner scan = new Scanner(System.in);
		P1.setS_id(scan.next());
		P_registerServiceImp p_regiService = new P_registerServiceImp();
		String res = p_regiService.P_registerCreate(P1);
		System.out.println(res);
	}
}
